package com.woniuxy.sales.service;

import com.woniuxy.sales.model.dto.SubmitAppointments;
import com.woniuxy.sales.model.entity.Appointments;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.sales.model.vo.AppointmentsVo;

import java.util.List;

/**
 * 【预约表】
*/
public interface AppointmentsService extends IService<Appointments> {

    List<AppointmentsVo> query(Integer userId);

    //查询某个用户：指定状态的预约，如果没有指定状态，则查询所有的预约
    List<AppointmentsVo> queryByStatus(Integer userId, Integer status);

    void remove(Integer id);

    boolean updateStatusToExpired(Long appointmentId);

    void submit(Integer userId, SubmitAppointments params);

}
